home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2006 May / PCWMAY06.iso / Software / Freeware / First Page 2006 3.00 / fp2006-final-3.00-setup.exe / {app} / Iscripts / DHTML - Document Effects / drop-down-document2.izs < prev    next >
Text File  |  2005-08-31  |  3KB  |  108 lines

  1. <!NOWIZARD>
  2.  
  3. <!TITLE>Drop-down Document Viewer II
  4. <!/TITLE>
  5.  
  6. <!BROWSER>FF1+ IE5+ Opr7+<!/BROWSER>
  7.  
  8. <!DESCRIPTION>Version II of the original drop down document viewer, this script uses text links to allow your visitors to select/ view external documents from your site. Specify whether the selected page is loaded in an inline frame or new window.
  9. <!/DESCRIPTION> 
  10.  
  11. <!CATEGORY>document effects<!/CATEGORY>
  12.  
  13. <!SCRIPT>
  14. <!-- START OF SCRIPT -->
  15. <!-- Step 1: Simply add the following to the BODY section of your page -->
  16. <!--CHANGE LINKS BELOW TO YOUR OWN-->
  17. <a href="javascript:jumpto('http://www.cnn.com')">CNN.com</a> | 
  18. <a href="javascript:jumpto('http://www.msnbc.com')">MSNBC</a> | 
  19. <a href="javascript:jumpto('http://www.abcnews.com')">ABC News</a> | 
  20. <a href="javascript:jumpto('http://news.bbc.co.uk')">BBC UK News</a>
  21.  
  22. <script language="javascript">
  23. <!--
  24.  
  25. //Drop-down Document Viewer II- ⌐ Dynamic Drive (www.dynamicdrive.com)
  26. //For full source code, 100's more DHTML scripts, and TOS,
  27. //visit http://www.dynamicdrive.com
  28.  
  29. //Specify display mode (0 or 1)
  30. //0 causes document to be displayed in an inline frame, while 1 in a new browser window
  31. var displaymode=0
  32. //if displaymode=0, configure inline frame attributes (ie: dimensions, intial document shown
  33. var iframecode='<iframe id="external" style="width:95%;height:400px" src="http://www.yahoo.com"></iframe>'
  34.  
  35. /////NO NEED TO EDIT BELOW HERE////////////
  36.  
  37. if (displaymode==0)
  38. document.write(iframecode)
  39.  
  40. function jumpto(inputurl){
  41. if (document.getElementById&&displaymode==0)
  42. document.getElementById("external").src=inputurl
  43. else if (document.all&&displaymode==0)
  44. document.all.external.src=inputurl
  45. else{
  46. if (!window.win2||win2.closed)
  47. win2=window.open(inputurl)
  48. //else if win2 already exists
  49. else{
  50. win2.location=inputurl
  51. win2.focus()
  52. }
  53. }
  54. }
  55. //-->
  56. </script>
  57. <!-- END OF SCRIPT -->
  58. <!/SCRIPT>
  59.  
  60. <!PREVIEW>
  61. <!-- START OF SCRIPT -->
  62.  
  63. <!-- Step 1: Simply add the following to the BODY section of your page -->
  64. <!--CHANGE LINKS BELOW TO YOUR OWN-->
  65. <a href="javascript:jumpto('http://www.cnn.com')">CNN.com</a> | 
  66. <a href="javascript:jumpto('http://www.msnbc.com')">MSNBC</a> | 
  67. <a href="javascript:jumpto('http://www.abcnews.com')">ABC News</a> | 
  68. <a href="javascript:jumpto('http://news.bbc.co.uk')">BBC UK News</a>
  69.  
  70. <script language="javascript">
  71. <!--
  72.  
  73. //Drop-down Document Viewer II- ⌐ Dynamic Drive (www.dynamicdrive.com)
  74. //For full source code, 100's more DHTML scripts, and TOS,
  75. //visit http://www.dynamicdrive.com
  76.  
  77. //Specify display mode (0 or 1)
  78. //0 causes document to be displayed in an inline frame, while 1 in a new browser window
  79. var displaymode=0
  80. //if displaymode=0, configure inline frame attributes (ie: dimensions, intial document shown
  81. var iframecode='<iframe id="external" style="width:95%;height:400px" src="http://www.yahoo.com"></iframe>'
  82.  
  83. /////NO NEED TO EDIT BELOW HERE////////////
  84.  
  85. if (displaymode==0)
  86. document.write(iframecode)
  87.  
  88. function jumpto(inputurl){
  89. if (document.getElementById&&displaymode==0)
  90. document.getElementById("external").src=inputurl
  91. else if (document.all&&displaymode==0)
  92. document.all.external.src=inputurl
  93. else{
  94. if (!window.win2||win2.closed)
  95. win2=window.open(inputurl)
  96. //else if win2 already exists
  97. else{
  98. win2.location=inputurl
  99. win2.focus()
  100. }
  101. }
  102. }
  103. //-->
  104. </script>
  105. <!-- END OF SCRIPT -->
  106. <!/PREVIEW>
  107.  
  108. <!RELATED>NONE<!/RELATED>